package com.xuan;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.env.ConfigurableEnvironment;

@SpringBootApplication
@Slf4j
@MapperScan("com.xuan.modules.**.mapper")
public class Application {

    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication();
        ConfigurableEnvironment configurableEnvironment = springApplication.run(Application.class).getEnvironment();
        log.info("启动成功：http://127.0.0.1:{}",configurableEnvironment.getProperty("server.port")+"/doc.html");
    }

}
